/* 全局样式 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  background: #007acc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;

  &:hover {
    background: #005a9e;
  }

  &:disabled {
    background: #ccc;
    cursor: not-allowed;
  }
}

.btn-secondary {
  background: #f5f5f5;
  color: #333;

  &:hover {
    background: #e8e8e8;
  }
}

.btn-link {
  background: #28a745;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  &:hover {
    background: #218838;
    text-decoration: none;
    color: white;
  }
}

/* Prism.js 基础样式 */
@import '~prismjs/themes/prism.css';

/* 自定义代码高亮样式 */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #6a737d;
  font-style: italic;
}

.token.namespace {
  opacity: .7;
}

.token.string,
.token.attr-value {
  color: #032f62;
}

.token.punctuation,
.token.operator {
  color: #24292e;
}

.token.entity,
.token.url,
.token.symbol,
.token.number,
.token.boolean,
.token.variable,
.token.constant,
.token.property,
.token.regex,
.token.inserted {
  color: #005cc5;
}

.token.atrule,
.token.keyword,
.token.attr-name,
.language-autohotkey .token.selector {
  color: #d73a49;
}

.token.function,
.token.deleted,
.language-autohotkey .token.tag {
  color: #6f42c1;
}

.token.tag,
.token.selector,
.language-autohotkey .token.keyword {
  color: #22863a;
}

.token.important,
.token.function,
.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}

.token.entity {
  cursor: help;
}

/* 针对明亮主题的高亮样式优化 */
.code-line {
  .token.comment {
    color: #6a9955;
  }
  
  .token.keyword {
    color: #0000ff;
  }
  
  .token.string {
    color: #a31515;
  }
  
  .token.number {
    color: #098658;
  }
  
  .token.function {
    color: #795e26;
  }
  
  .token.class-name {
    color: #267f99;
  }
  
  .token.operator {
    color: #000000;
  }
} 